Memsource\Service\DatabaseService A

Total Complexity 70
Dependencies 6
Dependents 6
Total lines 400
Lines of code 284
Logical lines of code 160
Comment lines 48
Methods 29
Properties 1

Methods 29

Method Rating Maintainability Complexity Lines of code
createMissingTranslationData()
S
56 6 18
updateTranslationData()
S
58 6 16
postDeleted()
S
59 5 14
postUntrashed()
S
61 5 13
postTrashed()
S
61 5 13
findCustomFieldKeys()
S
55 4 19
findCustomFieldsByPostId()
S
60 4 12
findContentSettingsByType()
S
61 3 11
saveContentSettings()
S
57 2 16
postSaved()
S
65 3 9
findAllLanguageMapping()
S
63 3 10
saveTranslationData()
S
60 2 14
findCustomFieldsTotalCount()
S
62 2 12
deleteTranslationData()
S
63 2 10
findOneLanguageMappingByMemsourceCode()
S
68 2 6
getTranslationByItemIdAndTypeAndTargetLanguageAndSetId()
S
68 2 6
saveLanguageMapping()
S
62 2 10
saveTranslation()
S
61 1 12
__construct()
S
81 1 3
updateTargetLanguageBySetIdAndType()
S
67 1 7
isTranslation()
S
69 1 6
hasTranslations()
S
72 1 5
getTranslationsForLanguage()
S
66 1 8
getLanguage()
S
72 1 5
getTranslationData()
S
66 1 8
getPostData()
S
66 1 8
deleteTranslationByTargetIdAndType()
S
71 1 5
deleteTranslationsBySetId()
S
72 1 5
isSystemCustomField()
S
77 1 3